﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NestedMasterPageSimple.master" AutoEventWireup="true" CodeFile="OrderSummaryAndAmount.aspx.cs" Inherits="OrderSummaryAndAmount" %>

<%@ Import Namespace="System.Web.Script.Serialization" %>
<%@ Register Src="~/UserControls/BundledControl.ascx" TagPrefix="Page" TagName="BundledControl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="NestedContent" runat="Server">
  <script type="text/javascript">
    $(document).ready(function () {

      //折扣設定
      CheckDiscType();

      //設定付款方式Click事件
      $('#<%= rbPayType1.ClientID %>,#<%= rbPayType2.ClientID %>,#<%= rbPayType3.ClientID %>').click(function () {
        CheckDiscType();
      });

      //ECoupon選取視窗顯示
      $('#<%= rbDiscType1.ClientID %>').click(function () {
        lightbox($(".popup-content .e-CouponMsg").prop('outerHTML'));
      });

      //設定scroll垂直位置
      $('html, body').scrollTop($('#<%= hfScroll.ClientID %>').val());

    });

    //記錄scroll垂直位置
    $(function () {
      $(window).scroll(function () {
        $('#<%= hfScroll.ClientID %>').val($(this).scrollTop());
      });
    });

    //折扣設定
    function CheckDiscType() {
      if ($('#<%= rbPayType1.ClientID %>').attr('checked') != 'checked') {
        $('#<%=rbDiscType2.ClientID %>').attr("disabled", "disabled");
        //如選取長榮航空聯名卡95折優惠，變更為都不使用
        if ($('#<%= rbDiscType2.ClientID %>').attr('checked') == 'checked') {
          $('#<%=rbDiscType3.ClientID %>').attr("checked", true);
        }
      }
      else {
        $('#<%=rbDiscType2.ClientID %>').removeAttr("disabled");
      }

      //如無E-Coupon 設定為無法選取
      if ($('#<%=lblNoECoupon.ClientID %>').length) {
        $('#<%=rbDiscType1.ClientID %>').attr("disabled", "disabled");
      }
      else {
        $('#<%=rbDiscType1.ClientID %>').removeAttr("disabled");
      }
    }

    //選擇加購單選
    function RadioFreePlus(obj) {
      //找出關鍵字尾碼為rbFreePlusSelect
      $("input[name$='rbFreePlusSelect']").each(function () {
        $(this).attr("checked", $(this)[0].id == obj.id);
      })
    }

    var lastMileageID = null;
    //哩程單選
    function RadioMileage(obj) {
      if (lastMileageID != null) {
        //取消前次選取
        $('#' + lastMileageID).attr("checked", false);
      }
      //同一連點
      if (lastMileageID == obj.id) {
        lastMileageID = null;
      }
      else {
        lastMileageID = obj.id;
      }
    }

    //E-Coupon單選
    function RadioECoupon(obj, eCoupon) {
      //找出關鍵字尾碼為rbFreePlusSelect
      $("input[name$='rbECouponSelect']").each(function () {
        $(this).attr("checked", $(this)[0].id == obj.id);
      })
      //暫存ECoupon
      $('#<%= hfECoupon.ClientID %>').val(eCoupon);
    }
  </script>
  <asp:HiddenField ID="hfScroll" runat="server" Value="0" />
  <div class="list-table wish">
    <asp:GridView ID="gvShoppingList" runat="server" AutoGenerateColumns="False" GridLines="None" Caption="購物清單" OnRowCommand="gvShoppingList_RowCommand">
      <Columns>
        <asp:BoundField HeaderStyle-CssClass="spacer">
          <HeaderStyle CssClass="spacer"></HeaderStyle>
        </asp:BoundField>
        <asp:TemplateField HeaderText="NO">
          <ItemTemplate>
            <%# Container.DataItemIndex+1 %>
          </ItemTemplate>
          <ItemStyle Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品圖">
          <ItemTemplate>
            <img src='<%# Server.HtmlEncode(Eval("ImagePath").ToString()) %>' style="width: 50px" />
          </ItemTemplate>
          <ItemStyle Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品名稱">
          <ItemTemplate>
            <%# Server.HtmlEncode(Eval("ProductName").ToString()) %>
            <span style="color: red"><%# Server.HtmlEncode(Eval("Prod_Memo").ToString())==""?"":"<br />"+Server.HtmlEncode(Eval("Prod_Memo").ToString())  %></span>
          </ItemTemplate>
          <ItemStyle Width="230px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="規格">
          <ItemTemplate>
            <%# Server.HtmlEncode(Eval("Spec").ToString()) %>
          </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="數量">
          <ItemTemplate>
            <asp:TextBox ID="txtboxQty" runat="server" Text='<%# Eval("Quantity") %>' MaxLength="3"></asp:TextBox>
            <asp:LinkButton ID="lbtnSave" runat="server" CausesValidation="True" CommandName="RowUpdate" 
              CommandArgument='<%# Server.HtmlEncode(Eval("SMAS_CODE").ToString()) %>' Text="儲存修改" CssClass="save"></asp:LinkButton>
          </ItemTemplate>
          <ItemStyle Width="150px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="抵購哩程">
          <ItemTemplate>
            <%#  string.Format("{0:#,##0}", Server.HtmlEncode(Eval("Mileage").ToString())) %>
          </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="單價">
          <ItemTemplate>
            <%# Server.HtmlEncode(Eval("Price", "{0:$ 0,0}").ToString()) %>
          </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="">
          <ItemTemplate>
            <asp:ImageButton ID="ibtnDel" runat="server" CommandName="RowDel" 
              CommandArgument='<%# Server.HtmlEncode(Eval("SMAS_CODE").ToString()) %>' ImageUrl="~/Images/Icons/Delete.png" />
          </ItemTemplate>
          <ItemStyle Width="150px" />
        </asp:TemplateField>
      </Columns>
    </asp:GridView>
  </div>
  <div class="list-table wish">
    <asp:GridView ID="gvFreePlusRandom" runat="server" AutoGenerateColumns="False" GridLines="Horizontal" Caption="恭喜您可獲得以下商品">
      <Columns>
        <asp:BoundField HeaderStyle-CssClass="spacer">
          <HeaderStyle CssClass="spacer"></HeaderStyle>
        </asp:BoundField>
        <asp:TemplateField HeaderText="">
          <ItemTemplate>
            <asp:Literal ID="ltlB2C_CODE" runat="server" Text='<%# Server.HtmlEncode(Eval("B2C_CODE").ToString()) %>' Visible="false"></asp:Literal>
            <asp:Literal ID="ltlSmas_Code" runat="server" Text='<%# ((dynamic)Eval("pSmas_Code_Ary_List"))[0].Smas_Code %>' Visible="false"></asp:Literal>
            <asp:Literal ID="ltlPromotion_ID" runat="server" Text='<%# Server.HtmlEncode(Eval("Promotion_ID").ToString()) %>' Visible="false"></asp:Literal>
          </ItemTemplate>
          <ItemStyle Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品圖">
          <ItemTemplate>
            <img id="imgPath" runat="server" src='<%# Server.HtmlEncode(Eval("IMAGE_PATH_M").ToString()) %>' style="width: 50px" />
          </ItemTemplate>
          <ItemStyle Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品名稱">
          <ItemTemplate>
            <asp:Literal ID="ltlB2C_CODE_NAME" runat="server" Text='<%# Server.HtmlEncode(Eval("B2C_CODE_NAME").ToString()) %>'></asp:Literal>
          </ItemTemplate>
          <ItemStyle Width="230px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="規格">
          <ItemTemplate>
            <asp:Literal ID="ltlPrd_Type" runat="server" Text='<%# ((dynamic)Eval("pSmas_Code_Ary_List"))[0].Prd_Type %>'></asp:Literal>
          </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="數量">
          <ItemTemplate>
            1
          </ItemTemplate>
          <ItemStyle Width="150px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="單價">
          <ItemTemplate>
            <%--<%# Eval("Price", "{0:$ 0,0}") %>--%>
          </ItemTemplate>
        </asp:TemplateField>
      </Columns>
    </asp:GridView>
    <asp:GridView ID="gvFreePlus" runat="server" AutoGenerateColumns="False" GridLines="Horizontal" Caption="恭喜您可獲得以下任一商品，請點選" OnRowDataBound="gvFreePlus_RowDataBound">
      <Columns>
        <asp:BoundField HeaderStyle-CssClass="spacer">
          <HeaderStyle CssClass="spacer"></HeaderStyle>
        </asp:BoundField>
        <asp:TemplateField HeaderText="">
          <ItemTemplate>
            <asp:RadioButton ID="rbFreePlusSelect" runat="server" CssClass="rbFreePlusSelect" OnCheckedChanged="rbFreePlusSelect_CheckedChanged" AutoPostBack="true" />
            <asp:Literal ID="ltlB2C_CODE" runat="server" Text='<%# Server.HtmlEncode(Eval("B2C_CODE").ToString()) %>' Visible="false"></asp:Literal>
            <asp:Literal ID="ltlSmas_Code" runat="server" Text='<%# ((dynamic)Eval("pSmas_Code_Ary_List"))[0].Smas_Code %>' Visible="false"></asp:Literal>
            <asp:Literal ID="ltlPromotion_ID" runat="server" Text='<%# Server.HtmlEncode(Eval("Promotion_ID").ToString()) %>' Visible="false"></asp:Literal>
          </ItemTemplate>
          <ItemStyle Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品圖">
          <ItemTemplate>
            <img id="imgPath" runat="server" src='<%# Server.HtmlEncode(Eval("IMAGE_PATH_M").ToString()) %>' alt="" style="width: 50px" />
          </ItemTemplate>
          <ItemStyle Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品名稱">
          <ItemTemplate>
            <asp:Literal ID="ltlB2C_CODE_NAME" runat="server" Text='<%# Server.HtmlEncode(Eval("B2C_CODE_NAME").ToString()) %>'></asp:Literal>
          </ItemTemplate>
          <ItemStyle Width="230px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="規格">
          <ItemTemplate>
            <asp:Literal ID="ltlPrd_Type" runat="server" Text='<%# ((dynamic)Eval("pSmas_Code_Ary_List"))[0].Prd_Type %>'></asp:Literal>
          </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="數量">
          <ItemTemplate>
            1
          </ItemTemplate>
          <ItemStyle Width="150px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="單價">
          <ItemTemplate>
            <%--<%# Eval("Price", "{0:$ 0,0}") %>--%>
          </ItemTemplate>
        </asp:TemplateField>
      </Columns>
    </asp:GridView>
  </div>
  <div class="list-table wish">
    <asp:GridView ID="gvBuyPlus" runat="server" AutoGenerateColumns="False" GridLines="Horizontal" Caption="機不可失加購好禮，請點選">
      <Columns>
        <asp:BoundField HeaderStyle-CssClass="spacer">
          <HeaderStyle CssClass="spacer"></HeaderStyle>
        </asp:BoundField>
        <asp:TemplateField HeaderText="">
          <ItemTemplate>
            <asp:CheckBox ID="cbBuyPlusSelect" runat="server" OnCheckedChanged="cbBuyPlusSelect_CheckedChanged" AutoPostBack="true" />
            <asp:Literal ID="ltlB2C_CODE" runat="server" Text='<%# Server.HtmlEncode(Eval("B2C_CODE").ToString()) %>' Visible="false"></asp:Literal>
            <asp:Literal ID="ltlSmas_Code" runat="server" Text='<%# ((dynamic)Eval("pSmas_Code_Ary_List"))[0].Smas_Code %>' Visible="false"></asp:Literal>
            <asp:Literal ID="ltlPromotion_ID" runat="server" Text='<%# Server.HtmlEncode(Eval("Promotion_ID").ToString()) %>' Visible="false"></asp:Literal>
            <asp:Literal ID="ltlPrd_Type" runat="server" Text='<%# ((dynamic)Eval("pSmas_Code_Ary_List"))[0].Prd_Type %>' Visible="false"></asp:Literal>
            <asp:Literal ID="ltlPrice" runat="server" Text='<%# Server.HtmlEncode(Eval("Price").ToString()) %>' Visible="false"></asp:Literal>
          </ItemTemplate>
          <ItemStyle Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品圖">
          <ItemTemplate>
            <img src='<%# Server.HtmlEncode(Eval("IMAGE_PATH_M").ToString()) %>' style="width: 50px" />
          </ItemTemplate>
          <ItemStyle Width="50px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="商品名稱">
          <ItemTemplate>
            <%# Server.HtmlEncode(Eval("B2C_CODE_NAME").ToString()) %>
          </ItemTemplate>
          <ItemStyle Width="230px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="規格">
          <ItemTemplate>
            <%# ((dynamic)Eval("pSmas_Code_Ary_List"))[0].Prd_Type %>
          </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="數量">
          <ItemTemplate>
            1
          </ItemTemplate>
          <ItemStyle Width="150px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="單價">
          <ItemTemplate>
            <%# Server.HtmlEncode(Eval("Price", "{0:$ #,##0}").ToString()) %>
          </ItemTemplate>
        </asp:TemplateField>
      </Columns>
    </asp:GridView>
  </div>
  <div class="simple-list">
    <div class="track-table">
      <asp:GridView ID="gvMileageP" runat="server" AutoGenerateColumns="False" GridLines="Horizontal"
        Caption="因您在哩上加禮館購買商品，請選擇你所要抵扣的哩程數 (自有哩程或受贈哩程其一)" OnRowDataBound="gvMileageP_RowDataBound">
        <Columns>
          <asp:BoundField HeaderStyle-CssClass="spacer">
            <HeaderStyle CssClass="spacer"></HeaderStyle>
          </asp:BoundField>
          <asp:TemplateField HeaderText="自有哩程">
            <ItemTemplate>
              <asp:RadioButton ID="rbMileageSelect" runat="server" CssClass="rb" ToolTip="<%# oi.MemberID %>" OnCheckedChanged="rbMileageSelect_CheckedChanged" AutoPostBack="true" />
            </ItemTemplate>
            <ItemStyle Width="55px" />
          </asp:TemplateField>
          <asp:TemplateField HeaderText="會員卡號">
            <ItemTemplate>
              <%# Server.HtmlEncode(oi.MemberID) %>
            </ItemTemplate>
            <ItemStyle Width="80px" />
          </asp:TemplateField>
          <asp:TemplateField HeaderText="姓名">
            <ItemTemplate>
              <%# Server.HtmlEncode(Eval("Name").ToString()) %>
            </ItemTemplate>
            <ItemStyle Width="200px" />
          </asp:TemplateField>
          <asp:TemplateField HeaderText="稱謂">
            <ItemTemplate>
              <%# Server.HtmlEncode(Eval("Sex").ToString()).Replace("F","女").Replace("M","男") %>
            </ItemTemplate>
            <ItemStyle Width="50px" />
          </asp:TemplateField>
          <asp:TemplateField HeaderText="哩程總數">
            <ItemTemplate>
              <asp:Literal ID="ltlMileage" runat="server" Text='<%# string.Format("{0:#,##0}", Convert.ToInt64(Eval("Mileage"))) %>'></asp:Literal>
            </ItemTemplate>
          </asp:TemplateField>
          <asp:TemplateField HeaderText="最快到期哩程數">
            <ItemTemplate>
              <%# string.Format("{0:#,##0}", Convert.ToInt64(Eval("Dateline_MILEAGE"))) %>哩程數最快在<%# Server.HtmlEncode(Eval("Dateline").ToString()) %>到期
            </ItemTemplate>
          </asp:TemplateField>
        </Columns>
      </asp:GridView>
      <asp:GridView ID="gvMileageO" runat="server" AutoGenerateColumns="False" GridLines="Horizontal" OnRowDataBound="gvMileageO_RowDataBound">
        <Columns>
          <asp:BoundField HeaderStyle-CssClass="spacer">
            <HeaderStyle CssClass="spacer"></HeaderStyle>
          </asp:BoundField>
          <asp:TemplateField HeaderText="受贈哩程">
            <ItemTemplate>
              <asp:RadioButton ID="rbMileageSelect" runat="server" CssClass="rb" ToolTip='<%# Eval("ID") %>' OnCheckedChanged="rbMileageSelect_CheckedChanged" AutoPostBack="true" />
            </ItemTemplate>
            <ItemStyle Width="55px" />
          </asp:TemplateField>
          <asp:TemplateField HeaderText="會員卡號">
            <ItemTemplate>
              <%# Server.HtmlEncode(Eval("ID").ToString()) %>
            </ItemTemplate>
            <ItemStyle Width="80px" />
          </asp:TemplateField>
          <asp:TemplateField HeaderText="姓名">
            <ItemTemplate>
              <%# Server.HtmlEncode(Eval("Name").ToString()) %>
            </ItemTemplate>
            <ItemStyle Width="200px" />
          </asp:TemplateField>
          <asp:TemplateField HeaderText="稱謂">
            <ItemTemplate>
              <%# Server.HtmlEncode(Eval("Sex").ToString()).Replace("F","女").Replace("M","男") %>
            </ItemTemplate>
            <ItemStyle Width="50px" />
          </asp:TemplateField>
          <asp:TemplateField HeaderText="哩程總數">
            <ItemTemplate>
              <asp:Literal ID="ltlMileage" runat="server" Text='<%# string.Format("{0:#,##0}", Convert.ToInt64(Eval("Mileage"))) %>'></asp:Literal>
            </ItemTemplate>
          </asp:TemplateField>
          <asp:TemplateField HeaderText="最快到期哩程數">
            <ItemTemplate>
              <%# string.Format("{0:#,##0}", Convert.ToInt64(Eval("Dateline_MILEAGE"))) %>哩程數最快在<%# Server.HtmlEncode(Eval("Dateline").ToString()).Insert(6,"/").Insert(4,"/") %>到期
            </ItemTemplate>
          </asp:TemplateField>
        </Columns>
      </asp:GridView>
    </div>
  </div>
  <div class="pink-table">
    <asp:Literal ID="Literal1" runat="server" Visible="false"></asp:Literal>
    <table border="0">
      <tr>
        <th colspan="3">請選擇付款方式</th>
      </tr>
      <tr>
        <td>
          <asp:RadioButton ID="rbPayType1" runat="server" GroupName="PayType" AutoPostBack="true" OnCheckedChanged="rbPayTypeDiscType_CheckedChanged" /></td>
        <td colspan="2">信用卡</td>
      </tr>
      <tr>
        <td>
          <asp:RadioButton ID="rbPayType2" runat="server" GroupName="PayType" AutoPostBack="true" OnCheckedChanged="rbPayTypeDiscType_CheckedChanged" /></td>
        <td colspan="2">銀行匯款</td>
      </tr>
      <tr>
        <td>
          <asp:RadioButton ID="rbPayType3" runat="server" GroupName="PayType" AutoPostBack="true" OnCheckedChanged="rbPayTypeDiscType_CheckedChanged" /></td>
        <td colspan="2">國泰世華銀行ATM</td>
      </tr>
      <tr>
        <th colspan="3">請選擇折扣方式</th>
      </tr>
      <tr>
        <td>
          <asp:RadioButton ID="rbDiscType1" runat="server" GroupName="DiscType" />
          <asp:HiddenField ID="hfECoupon" runat="server" />
          <div style="display: none" class="popup-content">
            <div id="divECouponMsg1" runat="server" class="e-CouponMsg">
              <div class="notice">
                <h4>你沒有E-Coupon可以選擇。</h4>
              </div>
            </div>
            <div id="divECouponMsg2" runat="server" class="e-CouponMsg">
              <h4>會員您好，您有可使用的E-Coupon如下:</h4>
              <div class="light-list-table" style="height: 300px; overflow-y: auto">
                <asp:GridView ID="gvECoupon" runat="server" AutoGenerateColumns="False" GridLines="None" BorderWidth="0"
                  OnRowDataBound="gvECoupon_RowDataBound">
                  <Columns>
                    <asp:BoundField DataField="" HeaderText="" HeaderStyle-CssClass="spacer" />
                    <asp:TemplateField HeaderText="">
                      <ItemTemplate>
                        <asp:RadioButton ID="rbECouponSelect" runat="server" CssClass="rb" ToolTip='<%# Server.HtmlEncode(Eval("DiscountNo").ToString()) %>' />
                      </ItemTemplate>
                      <ItemStyle />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="金額 (元)">
                      <ItemTemplate>
                        <asp:Literal ID="ltlPrice" runat="server" Text='<%# string.Format("{0:$ 0,0}", Convert.ToInt64(Eval("Price"))) %>'></asp:Literal>
                      </ItemTemplate>
                      <ItemStyle Width="80px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="有效期限">
                      <ItemTemplate>
                        <%# Server.HtmlEncode(Eval("Range").ToString()) %>
                      </ItemTemplate>
                      <ItemStyle />
                    </asp:TemplateField>
                    <asp:BoundField DataField="" HeaderText="" HeaderStyle-CssClass="spacer" />
                  </Columns>
                </asp:GridView>
              </div>
              <div class="liner"></div>
              <div class="links">
                <asp:LinkButton ID="lbtnECoupon" runat="server" CssClass="btn cancelbtn" OnClick="lbtnECoupon_Click">確 定</asp:LinkButton>
                <asp:LinkButton ID="lbtnECouponCancel" runat="server" CssClass="btn cancelbtn" OnClick="lbtnECouponCancel_Click">取 消</asp:LinkButton>
              </div>
            </div>
          </div>

        </td>
        <td>E-Coupon<asp:Label ID="lblNoECoupon" runat="server" Text=" ( 沒有E-Coupon可以選擇 )"></asp:Label></td>
        <td rowspan="3">
          <div class="mini-result intable">
            <table>
              <tr>
                <th>單價總計(含稅)</th>
                <td>
                  <asp:Literal ID="ltlPriceSum" runat="server" Text="$ 0"></asp:Literal></td>
              </tr>
              <tr>
                <th>折扣金額(含稅)</th>
                <td>-<asp:Literal ID="ltlDiscountSum" runat="server" Text="$ 0"></asp:Literal></td>
              </tr>
              <tr>
                <th>E-Coupon金額</th>
                <td>-<asp:Literal ID="ltlECouponSum" runat="server" Text="$ 0"></asp:Literal></td>
              </tr>
              <tr>
                <th>運費</th>
                <td>
                  <asp:Literal ID="ltlTransFee" runat="server" Text="$ 0"></asp:Literal></td>
              </tr>
              <tr class="spaced">
                <th>扣抵總哩程數</th>
                <td>
                  <asp:Literal ID="ltlMileSum" runat="server" Text="0"></asp:Literal></td>
              </tr>
              <tr class="red-text">
                <th>消費總計(含稅)</th>
                <td>
                  <asp:Literal ID="ltlnTheMoneyWeGet" runat="server" Text="$ 0"></asp:Literal>
                  +
                  <asp:Literal ID="ltlMileSum2" runat="server" Text="0"></asp:Literal>
                </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
      <tr>
        <td>
          <asp:RadioButton ID="rbDiscType2" runat="server" GroupName="DiscType" ToolTip="聯名卡" OnCheckedChanged="rbPayTypeDiscType_CheckedChanged" AutoPostBack="true" />
        </td>
        <td>長榮航空聯名卡95折優惠
            <p>
              (限使用美國運通長榮聯名簽帳白金卡/簽帳金卡、花旗銀行長榮航空聯名大萊卡/世界卡/鈦金卡/白金卡/夢翔卡/遙遊卡消費，本活動不得與其他優惠方案同時使用，單獨使:用哩程加現金”購買哩上加禮館上品亦不適用。
            </p>
        </td>
      </tr>
      <tr>
        <td>
          <asp:RadioButton ID="rbDiscType3" runat="server" GroupName="DiscType" ToolTip="都未使用" OnCheckedChanged="rbPayTypeDiscType_CheckedChanged" AutoPostBack="true" />
        </td>
        <td>都不使用</td>
      </tr>
    </table>
  </div>
  <div class="control-links">
    <asp:LinkButton ID="lbtn_ConfirmOrder" runat="server" CssClass="pink-btn fl" OnClick="lbtn_ConfirmOrder_Click">
          <img src="../Images/Icons/Checkout.png" />確定結帳
    </asp:LinkButton>
    <asp:LinkButton ID="lb_Back" runat="server" Text="返回繼續選購" CssClass="btn fr" PostBackUrl="~/Home.aspx">返回繼續選購</asp:LinkButton>
  </div>

  <Page:BundledControl runat="server" ID="BundledControl" />

  <div class="go-to-top">
    <a href="#">回到頂端</a>
  </div>

  <div style="display: none" class="popup-content">
    <div class="divMessageLightbox">
      <div class="notice">
        <h4><span id="spanMsg"></span></h4>
      </div>
      <div class="liner"></div>
      <div class="links">
        <a href="javascript:void(0);" class="btn cancelbtn">確 定</a>
      </div>
    </div>
  </div>
</asp:Content>

